// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.Window;
import com.nnee.p_fk.cls_ActivityEx;

// Referenced classes of package com.nnee.p_img.p_video:
//            g, ab

public class cls_ActivityMovieView extends cls_ActivityEx
{

    public cls_ActivityMovieView()
    {
        c = false;
        d = false;
        e = false;
    }

    public static void a(Context context, String s)
    {
        Uri uri = Uri.parse(s);
        Intent intent = new Intent();
        intent.setClass(context, com.nnee.p_img.p_video.cls_ActivityMovieView.class);
        intent.setData(uri);
        context.startActivity(intent);
    }

    static boolean a(cls_ActivityMovieView activitymovieview)
    {
        return activitymovieview.b;
    }

    public void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        getWindow().setFlags(1024, 1024);
        setContentView(0x7f030011);
        k();
        android.view.View view = findViewById(0x7f0d0032);
        Intent intent = getIntent();
        a = new cls_g(this, view, this, intent.getData());
        if(intent.hasExtra("android.intent.extra.screenOrientation"))
        {
            int i = intent.getIntExtra("android.intent.extra.screenOrientation", -1);
            if(i != getRequestedOrientation())
                setRequestedOrientation(i);
        }
        b = intent.getBooleanExtra("android.intent.extra.finishOnCompletion", true);
    }

    public void onPause()
    {
        super.onPause();
        c = false;
        if(e)
        {
            a.b();
            e = false;
        }
    }

    public void onResume()
    {
        super.onResume();
        c = true;
        if(d && c && !e)
        {
            a.c();
            e = true;
        }
    }

    public void onWindowFocusChanged(boolean flag)
    {
        d = flag;
        if(d && c && !e)
        {
            a.c();
            e = true;
        }
    }

    private cls_ab a;
    private boolean b;
    private boolean c;
    private boolean d;
    private boolean e;
}
